// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   TagServiceImpl.java

package dale.web.tag.service;

import dale.web.category.repository.CategoryRepository;
import dale.web.tag.domain.Tag;
import dale.web.tag.repository.TagRepository;
import java.util.List;

// Referenced classes of package dale.web.tag.service:
//            TagService

public class TagServiceImpl
    implements TagService
{

    public TagServiceImpl(TagRepository repository, CategoryRepository categoryRepository)
    {
        this.repository = repository;
    }

    public List search(Tag Tag)
    {
        return repository.list(Tag);
    }

    public void create(Tag tag)
    {
        repository.insert(tag);
    }

    public void delete(String tagID)
    {
        repository.delete(tagID);
    }

   
    /*public transient boolean contains(String tagIDs[])
    {
        if(tagIDs == null || tagIDs.length == 0)
        {
            return true;
        } else
        {
            int count = repository.in(tagIDs);
            return count == tagIDs.length;
        }
    }
    */

    private TagRepository repository;
}
